package observer;

public class StockObserver extends Observer {

    public StockObserver(String name, Subject sub) {
        super(name, sub);
    }

    @Override
    public void Update() {
        System.out.println(sub.getSubjectState() + name + " 关闭股市行情，继续工作！");
    }
}
